package com.ruoyi.hotel.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单对象 hotel_order
 *
 * @author w
 * @date 2025-03-21
 */
public class HotelOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单id */
    private Long id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String onum;

    /** 房间号 */
    @Excel(name = "房间号")
    private String rnum;

    /** 民宿id */
    @Excel(name = "民宿id")
    private Long hid;

    /** 房间类型id */
    @Excel(name = "房间类型id")
    private Long roomTypeId;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Long status;

    /** 入住时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入住时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkInTime;

    /** 离店时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "离店时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkOutTime;

    /** 价格 */
    @Excel(name = "价格")
    private Long price;

    /** 预约电话 */
    @Excel(name = "预约电话")
    private String phone;

    /** 住客姓名 */
    @Excel(name = "住客姓名")
    private String name;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 房间数量 */
    @Excel(name = "房间数量")
    private Long rooms;

    /** 房间数量 */
    @Excel(name = "是否包含早餐")
    private Long isBreakfastIncluded;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setOnum(String onum)
    {
        this.onum = onum;
    }

    public String getOnum()
    {
        return onum;
    }

    public void setRnum(String rnum)
    {
        this.rnum = rnum;
    }

    public String getRnum()
    {
        return rnum;
    }

    public void setHid(Long hid)
    {
        this.hid = hid;
    }

    public Long getHid()
    {
        return hid;
    }

    public void setRoomTypeId(Long roomTypeId)
    {
        this.roomTypeId = roomTypeId;
    }

    public Long getRoomTypeId()
    {
        return roomTypeId;
    }

    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }

    public void setCheckInTime(Date checkInTime)
    {
        this.checkInTime = checkInTime;
    }

    public Date getCheckInTime()
    {
        return checkInTime;
    }

    public void setCheckOutTime(Date checkOutTime)
    {
        this.checkOutTime = checkOutTime;
    }

    public Date getCheckOutTime()
    {
        return checkOutTime;
    }

    public void setPrice(Long price)
    {
        this.price = price;
    }

    public Long getPrice()
    {
        return price;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    public void setRooms(Long rooms)
    {
        this.rooms = rooms;
    }

    public Long getRooms()
    {
        return rooms;
    }

    public Long getIsBreakfastIncluded() {
        return isBreakfastIncluded;
    }

    public void setIsBreakfastIncluded(Long isBreakfastIncluded) {
        this.isBreakfastIncluded = isBreakfastIncluded;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("onum", getOnum())
            .append("rnum", getRnum())
            .append("hid", getHid())
            .append("roomTypeId", getRoomTypeId())
            .append("status", getStatus())
            .append("checkInTime", getCheckInTime())
            .append("checkOutTime", getCheckOutTime())
            .append("price", getPrice())
            .append("phone", getPhone())
            .append("name", getName())
            .append("userId", getUserId())
            .append("rooms", getRooms())
            .append("createTime", getCreateTime())
            .toString();
    }
}
